<?php
  $dsn ='mysql:host=localhost;dbname=gdecast1_DirectOrder';
  $username = 'gdecast1_gdecast';
  $password = 'qwerty1910';
  
  try {
    $db = new PDO($dsn, $username, $password);
  }
  catch(PDOException $e){
    $errMsg = $e->getMessage();
    echo $errMsg;
    die();
  }

  $root = $_SERVER['DOCUMENT_ROOT'] . '/DirectOrder/';  /* would be a good variable to 
                             * have a vailable to every php page in 
                             * db.php
                             */
?>